<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页内切换</title>
    <style>
        .clearfix::after{
            content: "";
            display: block;
            clear: both;
            width: 0;
            height: 0;
            font-size: 0;
        }
        .contentContainer{
            width: 1200px;
            margin: 200px auto;
            border: 1px solid #000;
        }
        .nav li{
            float: left;
            list-style-type: none;
            margin-right: 20px;
        }
        .nav li::after{
            content: "";
            display: block;
            width: 100%;
            height: 1px;
            background-color: blue;
            transition: all 0.5s;
            transform: scale(0);
        }
        .nav li:hover::after{
            transform: scale(1);
        }
        .nav li a{
            display: inline-block;
            text-decoration: none;
            color: #000;
            padding: 16px 10px;
        }
        .nav li a:hover{
            color: blue;
        }
        .textContainer{
            width: 1200px;
            overflow: hidden;
        }
        .textInnerContainer{
            width: 8000px;
            transition: all .5s;
        }
        .nav.about+.textContainer .textInnerContainer{
            transform: translate(0px);
        }
        .nav.value+.textContainer .textInnerContainer{
            transform: translate(-1200px);
        }
        .nav.honor+.textContainer .textInnerContainer{
            transform: translate(-3600px);
        }
        .textContainer .textInnerContainer>div{
            width: 1200px;
            height: 400px;
            /* border: 1px solid #000; */
            float: left;
        }
    </style>
</head>
<body>
    <div class="contentContainer">
        <ul class="nav clearfix value">
            <li>
                <a href="#about">公司简介</a>
            </li>
            <li>
                <a href="#value">企业价值观</a>
            </li>
            <li>
                <a href="#timer">发展历程</a>
            </li>
            <li>
                <a href="#honor">公司荣誉</a>
            </li>
            <li>
                <a href="#team">管理团队</a>
            </li>
            <li>
                <a href="#contactus">联系我们</a>
            </li>
        </ul>
        <div class="textContainer">
            <div class="textInnerContainer clearfix">
                <div id="about" class="about">about</div>
                <div id="value" class="value">value</div>
                <div id="timer" class="timer">timer</div>
                <div id="honor" class="honor">honor</div>
                <div id="team" class="team">team</div>
                <div id="contactus" class="contactus">contactus</div>
            </div>
        </div>
    </div>
</body>
</html>